package com.demo.house.dao;

import com.demo.house.entity.Appointment;
import com.demo.house.entity.HouseSourse;
import com.demo.house.entity.UserHouse;
import com.demo.house.vo.RequestVo.UserHouseRentVo;
import com.demo.house.vo.RequestVo.UserHouseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserHouseDao {
    int deleteByPrimaryKey(Integer id);

    int insert(UserHouse record);

    int insertSelective(UserHouseRentVo userHouseRentVo);

    UserHouse selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserHouse record);

    int updateByPrimaryKey(UserHouse userHouse);

    List<UserHouse> selectHouseByuseId(Integer id);

    List<UserHouse> insertRent(UserHouse userHouse);

/*    int updateState(UserHouse userHouse);*/

    // 查询所有预约了这个房源的人
    List<UserHouse> selectName(Integer id);


}